import request from '../../utils/request'
import { LOGIN, Registry, UPLOAD_USER_AVATAR } from '../../constance/URL'

export const login = function(data) {
  return request({
    url: LOGIN,
    method: 'post',
    data
  })
}

export const registry = function(data) {
  return request({
    url: Registry,
    method: 'post',
    data
  })
}

export const upLoadUserAvatar = function(data) {
  return request({
    url: UPLOAD_USER_AVATAR,
    method: 'post',
    data
  })
}
